﻿using System.FileServer.Models;

namespace System.FileServer.ApiModels
{
    /// <summary>
    /// 创建文件响应值
    /// </summary>
    public class CreateFilesResponse
    {
        public CreateFilesResponse(FileDBModel dbModel)
        {
            this.ID = dbModel.FID;
            this.CurrentName = dbModel.CurrentName;
            this.OriginalName = dbModel.OriginalName;
            this.CurrentSavePoint = dbModel.CurrentPointName;
            this.CheckCode = dbModel.CheckCode;
        }
        /// <summary>
        /// ID
        /// </summary>
        public long ID { get; set; }
        /// <summary>
        /// 当前存储点
        /// </summary>
        public string CurrentSavePoint { get; set; } = "";
        /// <summary>
        /// 校验码
        /// </summary>
        public string CheckCode { get; set; } = "";
        /// <summary>
        /// 当前文件名
        /// </summary>
        public string CurrentName { get; set; } = "";
        /// <summary>
        /// 原始文件名
        /// </summary>
        public string OriginalName { get; set; } = "";

    }
}
